#!/usr/bin/env python
import roslib; roslib.load_manifest('beginner_tutorials')
import rospy
from std_msgs.msg import String
from sensor_msgs.msg import Image, CameraInfo

def callback(data):
    rospy.loginfo(rospy.get_name()+"I heard %d x %d",data.width, data.height)

def listener():
    rospy.init_node('listener', anonymous=True)
    rospy.Subscriber("/camera/rgb/image_color", Image, callback)
    rospy.spin()

if __name__ == '__main__':
    listener()